//
// Created by Zhangwj on 2023/9/27.
//

#ifndef COMPILE_TASK2_UNARYOPNODE_H
#define COMPILE_TASK2_UNARYOPNODE_H


#include "SyntaxTreeNode.h"
#include "../Parser.h"

class UnaryOpNode : public SyntaxTreeNode {
public:
    // UnaryOp → '+' | '−' | '!'
    LexType type = LexType::LEXER_ERROR;

    static std::unique_ptr<UnaryOpNode> UnaryOpParser(Parser &parser);
};


#endif //COMPILE_TASK2_UNARYOPNODE_H
